import { defineStore } from 'pinia';
//页面显示
export const useNovelStore = defineStore('novel', {
  // 全局状态
  state: () => ({
    isMenu: false,
    isCatalogue: false,
    isBrightness: false,
    isVoiceread: false,
    isReadsetting: false,
	isTiming:false,
	isPageway:false,
  }),
  
  // 修改状态的方法
  actions: {
	changeisMenu(){
		this.isMenu=!this.isMenu;
	},
	changeisCatalogue(){
		this.isCatalogue=!this.isCatalogue;
	},
	changeisBrightness(){
		this.isBrightness=!this.isBrightness;
	},
	changeisVoiceread(){
		this.isVoiceread=!this.isVoiceread;
	},
	changeisReadsetting(){
		this.isReadsetting=!this.isReadsetting;
	},
	
	shutall(){
		this.isMenu=false;
		this.isCatalogue=false;
		this.isBrightness=false;
		this.isVoiceread=false;
		this.isReadsetting=false;
		
		this.isPageway=false;
	}
  },
});

